package com.chunfeng.mypen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chunfeng.mypen.entity.Subject;
import com.chunfeng.mypen.result.JsonRequest;

import java.util.List;

/**
 * @Description: 科目service接口
 * @author: 小雷
 * @createTime: 2023-11-14 00:11:17
 */
public interface SubjectService extends IService<Subject> {

    //条件查询所有学科
    JsonRequest<List<Subject>> lookSubject(Subject subject);

    //新增学科
    JsonRequest<Integer> addSubject(Subject subject);

    //修改学科信息
    JsonRequest<Integer> updateSubject(Subject subject);

    //删除学科信息
    JsonRequest<Integer> deleteSubject(List<String> ids);
}
